Skip to content

Conversation

sharanry
Copy link
Contributor

@sharanry sharanry requested a review from ChrisRackauckas July 12, 2021 11:25
@@ -72,11 +72,7 @@ Base.@propagate_inbounds function Base.getindex(A::AbstractDiffEqArray{T, N},sym
end

if i === nothing
if issymbollike(i) && A.indepsym !== nothing && Symbol(i) == A.indepsym
A.t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you try the independent variable and see what it does?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that case is covered now. Added tests too.

@@ -71,8 +71,8 @@ Base.@propagate_inbounds function Base.getindex(A::AbstractDiffEqArray{T, N},sym
i = sym
end

if i === nothing
if issymbollike(i) && A.indepsym !== nothing && Symbol(i) == A.indepsym
if i == nothing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not recommended. Why do you need to use ==?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@YingboMa YingboMa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need =='s generic methods?

@sharanry
Copy link
Contributor Author

Do you need =='s generic methods?

Are you referring to the same ==/=== issue?

@ChrisRackauckas ChrisRackauckas merged commit 4a5d9c6 into master Jul 12, 2021
@ChrisRackauckas ChrisRackauckas deleted the sy/sol_interface_logic branch July 12, 2021 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants